<?xml version="1.0" encoding="utf-8"?>

<div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window"
  design="device:m;">  
  <div component="$UI/system/components/justep/model/model" xid="model" style="height:auto;top:484px;left:89px;"> 
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="newData" idColumn="id" onAfterRefresh="newDataAfterRefresh"> 
      <column label="ID" name="id" type="String" xid="xid7"/>  
      <column label="name" name="name" type="String" xid="xid8"/>  
      <column label="value" name="fvalue" type="String" xid="xid9"/>  
      <data xid="default1">[]</data> 
    </div>
    <!-- <div xmlns="" auto="load" className="main/newData" component="$UI/system/components/justep/data/restData"
      label="新增分组数据集" url="/dbrest" xid="newData" _created="true" confirmDelete="false"
      confirmRefresh="false" onAfterRefresh="newDataAfterRefresh"></div>  --> 
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="selectData" idColumn="id"> 
      <column label="ID" name="id" type="String" xid="xid7"/>  
      <column label="name" name="name" type="String" xid="xid10"/>  
      <column label="value" name="fvalue" type="String" xid="xid11"/>  
      <data xid="default1">[{"ID":"","name":"","fvalue":""}]</data> 
    </div>  
    <div component="$UI/system/components/justep/data/data" autoLoad="true"
      xid="wxprogramData" idColumn="fkey" onCustomRefresh="wxprogramDataCustomRefresh"> 
      <column label="ID" name="id" type="String" xid="xid1"/>  
      <column label="key" name="fkey" type="String" xid="xid2"/>  
      <column label="value" name="fvalue" type="String" xid="xid3"/>  
      <column label="label" name="flabel" type="String" xid="xid4"/>  
      <column label="group" name="fgroup" type="String" xid="xid5"/>  
      <column label="issecure" name="issecure" type="String" xid="xid6"/>  
      <data xid="default1">[]</data> 
    </div> 
  </div>  
  <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="newprogramdialog"
    status="normal" forceRefreshOnOpen="true" src="./newprogram.w" title="新建配置" width="400px"
    height="300px" showTitle="true" onReceived="newprogramdialogReceived" style="top:91px;left:95px;"/>  
  <div component="$UI/system/components/justep/panel/panel" class="x-panel x-full"
    xid="panel1"> 
    <div class="x-panel-content" xid="content1"> 
      <div component="$UI/system/components/justep/toolBar/toolBar" class="x-toolbar form-inline x-toolbar-spliter"
        xid="toolBar1"> 
        <div component="$UI/system/components/justep/row/row" class="x-row"
          xid="row1"> 
          <div class="x-col" xid="col1"> 
            <div component="$UI/system/components/justep/labelEdit/labelEdit"
              class="x-label-edit x-labe20" xid="labelEdit1"> 
              <label class="x-label" xid="label1"><![CDATA[选择小程序]]></label>  
              <select component="$UI/system/components/justep/select/select" class="form-control x-edit"
                xid="select1" bind-ref="$model.selectData.ref(&quot;fvalue&quot;)" bind-options="newData"
                bind-optionsValue="fvalue" bind-optionsLabel="name" onChange="select1Change"/> 
            </div> 
          </div>  
          <div class="x-col" xid="col2"> 
            <a component="$UI/system/components/justep/button/button" class="btn btn-default"
              label="新建小程序" xid="button1" onClick="button1Click"> 
              <i xid="icon1"/>  
              <span xid="span1">新建小程序</span> 
            </a>  
            <a component="$UI/system/components/justep/button/button" class="btn btn-default"
              label="管理小程序" xid="operationBtn" onClick="operationBtnClick"> 
              <i xid="icon2"/>  
              <span xid="span2">管理小程序</span> 
            </a> 
          </div>  
          <div class="x-col" xid="col3"/> 
        </div> 
      </div>  
      <div component="$UI/system/components/justep/controlGroup/controlGroup"
        class="x-control-group" xid="controlGroup1"> 
        <div class="x-control-group-title" xid="controlGroupTitle1"> 
          <span xid="span3"/> 
        </div>  
        <div component="$UI/system/components/justep/list/list" class="x-list"
          xid="list1" data="wxprogramData" style="width:70%;"> 
          <ul class="x-list-template" xid="listTemplateUl1"> 
            <li xid="li1" bind-visible='val("fkey") != "com.qq.weixin.miniapp.group"'> 
              <div component="$UI/system/components/justep/labelEdit/labelEdit"
                class="x-label-edit x-label50" xid="labelEdit2" bind-if='val("fkey")  != "com.qq.weixin.miniapp.pay.apiClientCertPath"'> 
                <label class="x-label" xid="label2" bind-text="val(&quot;flabel&quot;)" style="width:30%;"/>  
                <input component="$UI/system/components/justep/input/input" class="form-control x-edit"
                  xid="input" bind-ref="ref(&quot;fvalue&quot;)"/> 
              </div>  
              <div component="$UI/system/components/justep/row/row" class="x-row"
                xid="row2" style="padding:0;" bind-if='val("fkey")  == "com.qq.weixin.miniapp.pay.apiClientCertPath"'> 
                <div class="x-col fontLabel" xid="col4">
                  <div component="$UI/system/components/justep/output/output"
                    class="x-output" xid="output1" bind-ref="val(&quot;flabel&quot;)" style="padding-top:22px;"/>
                </div>  
                <div class="x-col" xid="col5">
                  <div  component="$UI/system/components/justep/attachment/attachmentSimple" preSignMode="true" xid="attachmentSimple2"
                    bind-ref="ref(&quot;fvalue&quot;)"> 
                    <div class="x-attachment" xid="div12"> 
                      <div class="x-attachment-content x-card-border" xid="div13"> 
                        <div class="x-doc-process" xid="div14"> 
                          <div class="progress-bar x-doc-process-bar" role="progressbar"
                            style="width:0%;" xid="progressBar2"/>
                        </div>  
                        <div data-bind="foreach:$attachmentItems" xid="div15"> 
                          <div class="x-attachment-cell" xid="div16"> 
                            <div class="x-attachment-item x-item-other" data-bind="click:$model.previewOrRemoveItem.bind($model),style:{backgroundImage:($model.previewPicture.bind($model,$object))()}"
                              xid="div17"> 
                              <a data-bind="visible:$model.$state.get() == 'remove'"
                                class="x-remove-barget" xid="a2"/>
                            </div> 
                          </div> 
                        </div>  
                        <div class="x-attachment-cell" data-bind="visible:$state.get() == 'upload'"
                          xid="div18"> 
                          <div class="x-attachment-item x-item-upload" data-bind="visible:$state.get() == 'upload'"
                            xid="div19"/>
                        </div>  
                        <div class="x-attachment-cell" data-bind="visible:$state.get() == 'upload' &amp;&amp; $attachmentItems.get().length &gt; 0"
                          xid="div20"> 
                          <div class="x-attachment-item x-item-remove" data-bind="click:changeState.bind($object,'remove')"
                            xid="div21"/>
                        </div>  
                        <div style="clear:both;" xid="div22"/>
                      </div> 
                    </div> 
                  </div>
                </div> 
              </div>
            </li> 
          </ul> 
        </div> 
      </div>  
      <div component="$UI/system/components/justep/toolBar/toolBar" class="x-toolbar form-inline x-toolbar-spliter"
        xid="toolBar2" style="width:70%;"> 
        <a component="$UI/system/components/justep/button/button" class="btn btn-primary"
          label="保存配置" xid="saveBtn" onClick="saveBtnClick"> 
          <i xid="icon3"/>  
          <span xid="span4">保存配置</span> 
        </a> 
      </div> 
    </div> 
  </div>  
  <span component="$UI/system/components/justep/windowDialog/windowDialog" xid="programOperationDilaog"
    src="./programOperation.w" showTitle="true" title="操作" status="normal" forceRefreshOnOpen="true"
    onReceived="programOperationDilaogReceived" width="50%" height="50%"/>
</div>
